package com.threeonemeeting.activity;

import android.os.Bundle;

import com.snda.lib.http.TaskManager;
import com.threeonemeeting.R;
import com.threeonemeeting.activity.ext.MeetingPageListActivity;
import com.threeonemeeting.listview.DragRefreshListView;
import com.threeonemeeting.task.GetHotMeetingTask;

public class HotMeetingListActivity extends MeetingPageListActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_meeting_list, "热门会议");

		meetingListView
				.setOnRefreshListener(new DragRefreshListView.OnRefreshListener() {
					public void onRefresh() {

						// 发送刷新请求
						GetHotMeetingTask task = new GetHotMeetingTask(
								HotMeetingListActivity.this,
								HotMeetingListActivity.this);
						task.setRefresh(true);
						TaskManager.addTask(task, null, true);
					}
				});

		// 发送请求
		GetHotMeetingTask task = new GetHotMeetingTask(
				HotMeetingListActivity.this, HotMeetingListActivity.this);
		TaskManager.addTask(task, null, true);
	}
}
